package com.mikufufu.blog.model.dto;

import com.mikufufu.blog.common.annotation.Account;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 登录用户
 * 
 */
@Data
public class LoginParam {

    @Account
    @ApiModelProperty(value = "账号")
    @NotBlank(message = "账号不能为空")
    private String account;

    @ApiModelProperty(value = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;
}
